﻿@{Htss.Platform.Web.HtmlHelper Html = new Htss.Platform.Web.HtmlHelper();}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <meta charset="utf-8" />
    <title>编辑头像-@DreamBox.DAL.SiteConfig.Config.SiteName-@DreamBox.DAL.SiteConfig.Config.Title</title>
    <meta name="description" content="@DreamBox.DAL.SiteConfig.Config.Description" />
    <meta name="keywords" content="@DreamBox.DAL.SiteConfig.Config.KeyWords" />
    <script src="/tools/js/jquery-2.1.1.min.js" type="text/javascript"></script>
    <link href="/style/metro/css/metro-bootstrap.css" rel="stylesheet" />
    <script src="/style/metro/css/metro.min.js"></script>
</head>
<body class="metro">
    <div class="container">
        @Html.Action("", "header")
        <div class="grid">
            <div class="row offset3">
                <div class="span3">
                    <nav class="sidebar light">
                        <ul class="">
                            <li class="nav-header">
                                操作选项
                            </li>
                            <li>
                                <a href="/user/info">个人信息</a>
                            </li>
                            <li>
                                <a href="/user/data">编辑资料</a>
                            </li>
                            <li class="active">
                                <a href="/user/avatar">编辑头像</a>
                            </li>
                            <li>
                                <a href="/user/password">更改密码</a>
                            </li>
                        </ul>
                    </nav>
                </div>
                <div class="span9">
                    <form action="@(Html.Request.RawUrl)" method="post" enctype="multipart/form-data" id="J_pw_edit">
                        <div class="control-group">
                            <div class="controls">
                                <span class=" text-info">请选择小于2MB的图片,允许的图片类型(.png,.jpg,.jpeg,.bmp)</span>
                            </div>
                        </div>
                        <div class="control-group">
                            <div class="controls">
                                <img src="@(Html.ViewData["Avatar"])" alt="" class=" img-rounded" />
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">上传图片:<em style="color:Red;">*</em></label>
                            <div class="controls">
                                <input type="file" id="imgFile" name="imgFile" class="input-large" style="width:300px" />
                                <span class="text-error">@Html.VerificationMessage["imgFile"]</span>
                            </div>
                        </div>
                        <div class="control-group">
                            <div class="controls">
                                <input type="submit" class=" button primary" value="提 交" />
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
        @Html.Action("", "footer")
    </div>
</body>
</html>
